package com.shopping_back.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shopping_back.pojo.dto.CartItemDTO;
import com.shopping_back.pojo.dto.CartResponse;
import com.shopping_back.pojo.entity.CartItem;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 购物车商品表 服务类
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
public interface ICartItemService extends IService<CartItem> {

    CartResponse getCartItems(Long userId, int page, int size);

    void removeCartItem(Long id);

    void addToCart(CartItemDTO dto);
}
